// uint8转base64
export default  (uint8Array: any) => {
  return new Promise((resolve) => {
    const blob = new Blob([uint8Array]);
    const reader = new FileReader();
    reader.readAsDataURL(blob);
    reader.onloadend = () => {
      let base64String = (reader.result as any)?.split(',')[1];
      resolve(base64String);
    }
  })
}